/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package player;

import java.rmi.RemoteException;
import java.util.Collection;
import java.util.List;
import javax.ejb.CreateException;
import javax.ejb.EJBHome;
import javax.ejb.FinderException;

/**
 *
 * @author denaas
 */
public interface PlayerHome extends EJBHome {
    
    public PlayerRemote create(Player pl) throws CreateException, RemoteException;
    
    public PlayerRemote findByPrimaryKey(java.lang.Integer key) throws FinderException, RemoteException;
    public Collection findByName(String aName) throws FinderException, RemoteException;
    public Collection findAll() throws RemoteException;
    public Collection findByTeam(Integer teamId) throws FinderException, RemoteException; 
    public List select(Player plfrom, Player plto) throws RemoteException;
}
